/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package components;

/**
 *
 * @author Ervin James
 */

import javax.swing.ImageIcon;
import javax.swing.JButton;

public class CButton extends JButton {

    public String image;

    public CButton(String image, int width,int height){

        this.image = image;
        setIcon(new ImageIcon(getClass().getResource("/images/"+image)));
        setSize(width,height);
        setBorderPainted(false);
        setContentAreaFilled(false);

    }

    public void setRollover(String rollover){
        setRolloverIcon(new ImageIcon(getClass().getResource("/images/"+rollover)));
    }
}
